//
//  OrderLogisticsCell.m
//  LuxuryGoods
//
//  Created by DCQ on 2018/5/30.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "OrderLogisticsCell.h"
#import "ExpressInfoListModel.h"
@interface OrderLogisticsCell ()
@property (weak, nonatomic) IBOutlet UIView *topLine;
@property (weak, nonatomic) IBOutlet UIView *bottomVLine;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UIImageView *imgV;
@property (weak, nonatomic) IBOutlet UIView *verticalImgV;

@end
@implementation OrderLogisticsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setEntity:(ExpressInfoModel *)entity{
    self.titleLabel.text = entity.AcceptStation;
    self.dateLabel.text = entity.AcceptTime ;
    
    NSString * imageName = @"wuliu_zhiqina";
//    imageName = @"wuliu_dangqian";
    self.imgV.image = [UIImage imageNamed:imageName];
    
    self.topLine.hidden = NO;
    self.verticalImgV.hidden = NO;
}

- (void)confightFistCell{
    self.topLine.hidden = YES; 
    self.imgV.image = [UIImage imageNamed: @"wuliu_dangqian"];
    self.verticalImgV.hidden = NO;
}
- (void)confightEndCell{
    self.topLine.hidden = NO;
    self.verticalImgV.hidden = YES;
}
@end
